package top.fangw.common.api.openfign.tenant;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.fangw.common.api.dto.Oauth2RegisteredClientDto;
import top.fangw.common.core.result.Result;

@FeignClient(name = "cloud-tenant")
public interface IRegisteredClientServiceFeign {

    /**
     * 添加数据源信息
     * @param clientId
     * @return
     */
    @GetMapping("/oauth2-registered-client/geyByClientIdFeign")
    Result<Oauth2RegisteredClientDto> geyByClientIdFeign(@RequestParam("clientId") String clientId);

    /**
     * 添加数据源信息
     * @param id
     * @return
     */
    @GetMapping("/oauth2-registered-client/getByIdIdFeign")
    Result<Oauth2RegisteredClientDto> getByIdFeign(@RequestParam("id") String id);
}
